package com.dailyblue.java.spring.boot.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dailyblue.java.spring.boot.security.bean.Powers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

@Mapper
public interface PowersMapper extends BaseMapper<Powers> {
    @Select("select * from powers where id in (select pid from user_power where uid=#{userId})")
    Set<Powers> findAllPowerByUserId(int userId);
}
